package org.dbwebx.flex.common.event
{

	import mx.collections.ArrayCollection;
	import mx.events.FlexEvent;
	
	import org.dbwebx.domain.SourceNode;
	
	public class SourceNodeEvent extends FlexEvent
	{
		
		public static  const SN_FOUND_EVT:String = "SourceNode:Found";
		
		public static  const SN_LOADED_EVT:String = "SourceNode:Loaded";
		
		public static  const SN_LIST_LOADED_EVT:String = "SourceNodeList:Loaded";
		
		public function SourceNodeEvent(type:String)
		{
			super(type);
		}
		
		private var _sourceNode:SourceNode;
		
		private var _sourceNodes:ArrayCollection;
		
		public function get sourceNode():SourceNode
		{
			return this._sourceNode;
		}
		
		public function set sourceNode(sourceNode:SourceNode):void
		{
			this._sourceNode = sourceNode;
		}
		
		public function get sourceNodes():ArrayCollection
		{
			return this._sourceNodes;
		}
		
		public function set sourceNodes(list:ArrayCollection):void
		{
			this._sourceNodes = list;
		}
		
	}
}